FROM hadoop2.6
ENV SPARK_HOME=/usr/spark/spark-1.3.1-bin-hadoop2.6
ENV PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbina


COPY ./spark-1.3.1-bin-hadoop2.6.tgz  /usr/spark/
RUN cd /usr/spark/ && tar -xzf ./spark-1.3.1-bin-hadoop2.6.tgz && rm /usr/spark/spark-1.3.1-bin-hadoop2.6.tgz
COPY ./spark-defaults.conf $SPARK_HOME/conf/
COPY ./spark-env.sh $SPARK_HOME/conf/
